//logs.js
const app = getApp()
Page({
  data: {
    list1:[],
    logs: [],
    data:{}
  },
  onLoad: function () {
  },
  feed:function(){
    let that = this
    app.netRequest({
      url: '/bas/daily/list',
      data: {
        'currentPage': '1',
        'pageSize': '50'
      },
      success: function (res) {
        console.log(res)
        console.log(res.data)
        console.log(res.data[0].children)
        that.setData({list1:res.data[2].children})

      }
    })
  },
  feedByCode:function(){
    let that = this
    console.log(that.data)
    console.log(that.data.list1)
    wx.navigateTo({
      url: '../dailyoperation/dailyoperation?testData=' + JSON.stringify(that.data.list1)
    })
  }
});
